<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:om="http://www.apusic.com/jsf/misc" renderKitId="AJAX">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</w:head>
	<!-- Insert some content here -->
	<w:page title="Edit Winlet Demo">
		<om:useBean value="demo.winlet.edit.UserInfoEditBean"></om:useBean>
		<w:form clientValidate="true">
			<layout:panelGrid columns="2">
				<layout:cell colspan="1" rowspan="1">
				   <h:outputText value="#{messages.id}"></h:outputText>
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
					<w:textField id="txtId" disabled="true" value="#{demo.winlet.edit.UserInfoEditBean.model.id }"></w:textField>
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
					<h:outputText value="#{messages.name}" ></h:outputText>
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
					<w:textField id="txtName" value="#{demo.winlet.edit.UserInfoEditBean.model.name }" required="true">
						<f:validateLength minimum="1"></f:validateLength>
					</w:textField>
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
				<h:outputText value="#{messages.password}"></h:outputText>
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
					<w:textField id="txtPwd" value="#{demo.winlet.edit.UserInfoEditBean.model.password }"></w:textField>
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
				 <h:outputText value="#{messages.desc}"></h:outputText>
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
					<w:textField id="txtDesc" value="#{demo.winlet.edit.UserInfoEditBean.model.description }"></w:textField>
				</layout:cell>
			</layout:panelGrid>
			<layout:panelGrid columns="3">
				<layout:cell colspan="1" rowspan="1"><w:button id="btnSave" value="保存" actionBinding="#{demo.winlet.edit.UserInfoEditBean.saveAction}" /></layout:cell>
				<layout:cell colspan="1" rowspan="1"><w:button id="btnDelete" value="关闭" actionBinding="#{demo.winlet.edit.UserInfoEditBean.exitAction}" /></layout:cell>
			</layout:panelGrid>
		</w:form>
	</w:page>
</f:view>